package com.yydream.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class SysMenuVo implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(name = "菜单id",notes = "")
    private Long id ;


    @ApiModelProperty(name = "菜单父级id",notes = "")
    private Long pid ;


    @ApiModelProperty(name = "菜单名称",notes = "")
    private String name ;


    @ApiModelProperty(name = "菜单编码",notes = "")
    private String code ;


    @ApiModelProperty(name = "菜单地址",notes = "")
    private String path ;


    @ApiModelProperty(name = "菜单图标",notes = "")
    private String icon ;

    @ApiModelProperty(name = "权限码",notes = "")
    private String permission ;

    @ApiModelProperty(name = "开启缓存",notes = "（1：开启，2：关闭）")
    private Integer keepAlive ;

    @ApiModelProperty(name = "组件地址",notes = "")
    private String component ;

    @ApiModelProperty(name = "菜单状态",notes = "（1：启动，2：禁用）")
    private Integer state ;

    @ApiModelProperty(name = "动态路由添加层级",notes = " (默认值为layer，应附加“Route”的父路由记录，这里对应的是父级路由的code)")
    private String routerViewName ;

    @ApiModelProperty(name = "是否显示到顶部菜单",notes = "（1: 显示，2：不显示）")
    private Integer isShow ;

    @ApiModelProperty(name = "排序",notes = "")
    private Integer sort ;

    @ApiModelProperty(name = "子集", notes = "")
    List<SysMenuVo> childList;
}
